package cn.bdqn.study_method;

//手机类
public class Phone {

    Cell cell;//手机内的电池

    public void intoPhone(){
        cell.intoCell();
    }

    public  static  void main(String[] args){
        Phone p = new Phone();
        Cell c = new Cell();
        c.brand = "三星";
        p.cell = c;
        p.intoPhone();
    }

}
